<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./lib/vue.min.js"></script>
</head>
<body>
    <div id="app">
        <!-- v-bind的简写是 “:” -->
       <input type="button" value="按钮" :title ="msg2 + '1234'"> <br>
       <input type="button" value ="按钮1" v-on:click = "show">
       <div>
           <!-- v-on的简写是:"@" -->
        <input type="button" value ="按钮1" @click = "show1">
       </div>
    </div>

    <script>
        var vm = new Vue({
            el:"#app",
            data:{
                msg2:"这是一个按钮"
            },
            methods:{
                show:function(){
                    alert(111)
                },
                show1:function(){
                    alert(222)
                }
            }
        })
    </script>
</body>
</html>